package com.ktjy.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

@Data
public class MqttMessage implements Serializable {

    private String username;
    private String topic;
    private long timestamp;
    private int qos;
    @JsonProperty("publish_received_at")
    private long publishReceivedAt;
    private String peerhost;
    private String payload;
    private String node;
    private String id;
    private String event;
    private String clientid;
    @JsonIgnore
    @JsonProperty("pub_props")
    private String pub_props;

    @JsonIgnore
    @JsonProperty("metadata")
    private String metadata;

    @JsonIgnore
    @JsonProperty("flags")
    private String flags;


}
